{template 'common/header'}
<ul class="nav nav-tabs">
	<li class="active"><a href="{php echo url('site/entry/lucky', array('eid' => $_GPC['eid']));}">幸运码列表</a></li>
</ul>
<div class="panel panel-info">
	<div class="panel-heading">筛选</div>
	<div class="panel-body">
		<form action="./index.php" method="get" class="form-horizontal" role="form">
			<input type="hidden" name="c" value="{$_GPC['c']}">
			<input type="hidden" name="a" value="{$_GPC['a']}">
			<input type="hidden" name="eid" value="{$_GPC['eid']}">
			<div class="form-group">
				<label class="col-xs-12 col-sm-3 col-md-2 control-label">昵称(uid)</label>
				<div class="col-sm-6 col-md-8 col-lg-8 col-xs-12">
					<input type="text" class="form-control" name="uid" placeholder="请输入昵称或UID" value="{$_GPC['uid']}" />
				</div>
			</div>
			<div class="form-group">
				<label class="col-xs-12 col-sm-3 col-md-2 control-label">签到名称</label>
				<div class="col-sm-6 col-md-8 col-lg-8 col-xs-12">
					<select class="form-control" name="rid">
						{loop $lucky $v}
						<option value="{$v['rid']}" {if $_GPC['rid']==$v['rid']}selected{/if}>{$v['rname']}</option>
						{/loop}
					</select>
				</div>
			</div>
			<div class="form-group">
				<label class="col-xs-12 col-sm-3 col-md-2 control-label">幸运码</label>
				<div class="col-sm-6 col-md-8 col-lg-8 col-xs-12">
					<input type="text" class="form-control" name="luckycode" placeholder="请输入幸运码" value="{$_GPC['luckycode']}" />
				</div>
			</div>
			<div class="form-group">
				<label class="col-xs-12 col-sm-3 col-md-2 control-label"></label>
				<div class="col-sm-6 col-md-8 col-lg-8 col-xs-12">
					<button type="submit" class="btn btn-default"><i class="fa fa-search"></i> 搜索</button>
					<input type="hidden" name="token" value="{$_W['token']}" />
				</div>
			</div>
		</form>
	</div>
</div>
<div class="panel panel-default ">
	<div class="table-responsive panel-body">
		<table class="table table-hover">
			<thead class="navbar-inner">
			<tr>
				<th style="width:150px;">会员</th>
				<th>签到名称</th>
				<th>领取时间</th>
				<th>幸运码</th>
			</tr>
			</thead>
			<tbody>
			{loop $list $li}
			<tr>
				<td>
					<div class="clearfix">
						<div class="pull-left" style="width: 40px;height: 40px; overflow: hidden; border-radius: 50%;">
							<img src="{php echo tomedia($li['avatar'])}" onerror="this.src='../app/resource/images/heading.jpg'" style="width: 100%" />
						</div>
						<div class="pull-left" style="line-height: 40px; margin-left: 10px;">
							{if $li['nickname']!=''}{$li['nickname']}{else}{$li['uid']}{/if}
						</div>
					</div>
				</td>
				<td>{$rname}</td>
				<td>{$li['dateline']}</td>
				<td>{$li['id']}</td>
			</tr>
			{/loop}
			</tbody>
		</table>
	</div>
</div>
{$pager}
{template 'common/footer'}